from django.contrib import admin
from models import Category, Entry

class CategoryAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('title',)}
        
class EntryAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('title',)}
    list_display  = ('title', 'pub_date', 'status')
            
admin.site.register(Category, CategoryAdmin)
admin.site.register(Entry, EntryAdmin)

    